package com.whfc.fse.enums;

/**
 * 塔机部位
 *
 * @author : qzexing
 * @version : 1.0
 * @date : 2020/7/10 17:26
 */
public enum FseCranePart {

    COCKPIT(1, "驾驶舱"),
    CRANE_ARM(2, "起重臂"),
    LUFFING_TROLLEY(3, "变幅小车"),
    BALANCE_ARM(4, "平衡臂");

    private Integer value;

    private String desc;

    FseCranePart(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static FseCranePart parseValue(Integer value) {
        switch (value) {
            case 1:
                return COCKPIT;
            case 2:
                return CRANE_ARM;
            case 3:
                return LUFFING_TROLLEY;
            case 4:
                return BALANCE_ARM;
            default:
                return null;
        }
    }

}
